package com.ruoyi.shopping.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 用户积分记录对象 jy_mall_integral_record
 *
 * @author scx
 * @date 2022-06-29
 */
@ApiModel
public class MallIntegralRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /** 操作方向 */
    @Excel(name = "操作方向")
    @ApiModelProperty(value = "操作方向")
    private String handleDirection;

    /** 操作类型 */
    @Excel(name = "操作类型")
    @ApiModelProperty(value = "操作类型")
    private String handleType;

    /** 描述 */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述")
    private String depict;

    /** 操作积分 */
    @Excel(name = "操作积分")
    @ApiModelProperty(value = "操作积分")
    private BigDecimal handleIntegral;

    /** 有效金额 */
    @Excel(name = "有效金额")
    @ApiModelProperty(value = "有效金额")
    private BigDecimal integralBalance;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setHandleDirection(String handleDirection)
    {
        this.handleDirection = handleDirection;
    }

    public String getHandleDirection()
    {
        return handleDirection;
    }
    public void setHandleType(String handleType)
    {
        this.handleType = handleType;
    }

    public String getHandleType()
    {
        return handleType;
    }
    public void setDepict(String depict)
    {
        this.depict = depict;
    }

    public String getDepict()
    {
        return depict;
    }
    public void setHandleIntegral(BigDecimal handleIntegral)
    {
        this.handleIntegral = handleIntegral;
    }

    public BigDecimal getHandleIntegral()
    {
        return handleIntegral;
    }
    public void setIntegralBalance(BigDecimal integralBalance)
    {
        this.integralBalance = integralBalance;
    }

    public BigDecimal getIntegralBalance()
    {
        return integralBalance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("handleDirection", getHandleDirection())
            .append("handleType", getHandleType())
            .append("depict", getDepict())
            .append("handleIntegral", getHandleIntegral())
            .append("integralBalance", getIntegralBalance())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
